package com.wwy.monitor.common;

public enum ResponseEnum {

    SUCCESS(1, "SUCCESS", "服务接口调用成功"),

    PARAM_EMPTY(2, "PARAM_EMPTY", "请求参数为空"),
    PARAM_ILLEGAL(3, "PARAM_ILLEGAL", "请求参数不合法"),
    DATA_NOT_EXIST(4, "DATA_NOT_EXIST", "数据不存在"),
    DATA_ALREADY_EXIST(5, "DATA_ALREADY_EXIST", "数据已存在"),
    DATA_OUTMODED(6, "DATA_OUTMODED", "数据已过时"),
    ILLEGAL_OPERATE(7, "ILLEGAL_OPERATE", "非法操作"),
    SERVER_EXCEPTION(8, "SERVER_EXCEPTION", "服务器异常"),
    SAVE_EXCEPTION(9, "SAVE_EXCEPTION", "保存数据异常"),
    UPDATE_EXCEPTION(10, "UPDATE_EXCEPTION", "更新数据异常"),
    DELETE_EXCEPTION(11, "DELETE_EXCEPTION", "删除数据异常");

    private int code;
    private String msg;
    private String desc;

    ResponseEnum(int code, String msg, String desc) {
        this.code = code;
        this.msg = msg;
        this.desc = desc;
    }

    public int getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }

    public String getDesc() {
        return this.desc;
    }
}

